package com.vizhuo.client.business.match.container.vo;

import java.io.Serializable;

import com.vizhuo.client.base.AbstractVo;

/**
 * 
 * @ClassName: MatOrderContainerDescVo
 * @Description: 装车明细items
 * @author liujq
 * @date 2015-9-22 下午1:56:12
 * 
 */
public class MatOrderContainerDescVo extends AbstractVo implements Serializable {

    /**
     * 装车单明细id
     */
    private Long id;

    /**
     * 装车单id
     */
    private Long orderContainerId;

    /**
     * 货源id goodsId
     */
    private Long goodsId;

    /**
     * 货源编号 goodsNo
     */
    private String goodsNo;

    /**
     * 货源订单id(mat_order表id) orderId
     */
    private Long goodsOrderId;

    /**
     * 用车时间 needCarTime
     */
    private String needCarTime;

    /**
     * 货物种类 goodsSpeciesName ==
     */
    private String goodsSpeciesName;

    /**
     * 货物类型-code
     */
    private String goodsTypeCode;

    /**
     * 重量/体积 goodsSize ==
     */
    private String goodsSizeName;

    /**
     * 货物重量
     */
    private String goodsLoad;

    /**
     * 车型 carType ==
     */
    private String carTypeName;

    /**
     * 车长 carLength ==
     */
    private String carLengthName;

    /**
     * 运输起点 startAreaAddress
     */
    private String startAddress;

    /**
     * 运输终点 endAreaAddress
     */
    private String endAddress;

    /**
     * 用车描述 needDesc ==
     */
    private String needDesc;

    /**
     * 发货人姓名 releaseName
     */
    private String releaseName;

    /**
     * 发货人联系电话 releasePhone
     */
    private String releaseTelphone;

    /**
     * 发货人认证状态 checkFlag
     */
    private String checkFlag;

    /**
     * 系统状态，0已删除，1启用
     */
    private String status;

    /**
     * 添加人id
     */
    private Integer createUserId;

    /**
     * 添加时间
     */
    private String createDatetime;

    /**
     * 最后修改人id
     */
    private Integer lastModifyUserId;

    /**
     * 最后修改时间
     */
    private String lastModifyDatetime;

    /**
     * 起点-省(编码)
     */
    private String startProvice;

    /**
     * 起点-市(编码)
     */
    private String startCity;

    /**
     * 起点-区(编码)
     */
    private String startCounty;

    /**
     * 货物种类 编码
     */
    private String goodsSpecies;

    /**
     * 终点-省(编码)
     */
    private String endProvice;

    /**
     * 终点-市(编码)
     */
    private String endCity;

    /**
     * 终点-区(编码)
     */
    private String endCounty;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getOrderContainerId() {
        return orderContainerId;
    }

    public void setOrderContainerId(Long orderContainerId) {
        this.orderContainerId = orderContainerId;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsNo() {
        return goodsNo;
    }

    public void setGoodsNo(String goodsNo) {
        this.goodsNo = goodsNo;
    }

    public Long getGoodsOrderId() {
        return goodsOrderId;
    }

    public void setGoodsOrderId(Long goodsOrderId) {
        this.goodsOrderId = goodsOrderId;
    }

    public String getNeedCarTime() {
        return needCarTime;
    }

    public void setNeedCarTime(String needCarTime) {
        this.needCarTime = needCarTime;
    }

    public String getNeedDesc() {
        return needDesc;
    }

    public void setNeedDesc(String needDesc) {
        this.needDesc = needDesc;
    }

    public String getGoodsSpeciesName() {
        return goodsSpeciesName;
    }

    public void setGoodsSpeciesName(String goodsSpeciesName) {
        this.goodsSpeciesName = goodsSpeciesName;
    }

    public String getGoodsSizeName() {
        return goodsSizeName;
    }

    public void setGoodsSizeName(String goodsSizeName) {
        this.goodsSizeName = goodsSizeName;
    }

    public String getCarTypeName() {
        return carTypeName;
    }

    public void setCarTypeName(String carTypeName) {
        this.carTypeName = carTypeName;
    }

    public String getCarLengthName() {
        return carLengthName;
    }

    public void setCarLengthName(String carLengthName) {
        this.carLengthName = carLengthName;
    }

    public String getStartAddress() {
        return startAddress;
    }

    public void setStartAddress(String startAddress) {
        this.startAddress = startAddress;
    }

    public String getEndAddress() {
        return endAddress;
    }

    public void setEndAddress(String endAddress) {
        this.endAddress = endAddress;
    }

    public String getReleaseName() {
        return releaseName;
    }

    public void setReleaseName(String releaseName) {
        this.releaseName = releaseName;
    }

    public String getReleaseTelphone() {
        return releaseTelphone;
    }

    public void setReleaseTelphone(String releaseTelphone) {
        this.releaseTelphone = releaseTelphone;
    }

    public String getCheckFlag() {
        return checkFlag;
    }

    public void setCheckFlag(String checkFlag) {
        this.checkFlag = checkFlag;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }

    public Integer getLastModifyUserId() {
        return lastModifyUserId;
    }

    public void setLastModifyUserId(Integer lastModifyUserId) {
        this.lastModifyUserId = lastModifyUserId;
    }

    public String getCreateDatetime() {
        return createDatetime;
    }

    public void setCreateDatetime(String createDatetime) {
        this.createDatetime = createDatetime;
    }

    public String getLastModifyDatetime() {
        return lastModifyDatetime;
    }

    public void setLastModifyDatetime(String lastModifyDatetime) {
        this.lastModifyDatetime = lastModifyDatetime;
    }

    /**
     * 客户端货物类型调用该方法:处理 重量和体积的问题
     * 
     * @return
     */
    public String getGoodsTypeLabel() {
        String goodsTypeLabel = this.goodsSpeciesName == null ? "" : this.goodsSpeciesName;
        String goodsLoadStr = this.goodsLoad == null ? "" : this.goodsLoad;
        String goodsSizeStr = this.goodsSizeName == null ? "" : this.goodsSizeName;

        if ("1".equals(this.getGoodsTypeCode())) {
            goodsTypeLabel += " " + goodsLoadStr + "吨";
        } else {
            goodsTypeLabel += " " + goodsSizeStr + "立方";
        }
        return goodsTypeLabel;
    }

    public String getStartProvice() {
        return startProvice;
    }

    public void setStartProvice(String startProvice) {
        this.startProvice = startProvice;
    }

    public String getStartCity() {
        return startCity;
    }

    public void setStartCity(String startCity) {
        this.startCity = startCity;
    }

    public String getStartCounty() {
        return startCounty;
    }

    public void setStartCounty(String startCounty) {
        this.startCounty = startCounty;
    }

    public String getGoodsSpecies() {
        return goodsSpecies;
    }

    public void setGoodsSpecies(String goodsSpecies) {
        this.goodsSpecies = goodsSpecies;
    }

    public String getEndProvice() {
        return endProvice;
    }

    public void setEndProvice(String endProvice) {
        this.endProvice = endProvice;
    }

    public String getEndCity() {
        return endCity;
    }

    public void setEndCity(String endCity) {
        this.endCity = endCity;
    }

    public String getEndCounty() {
        return endCounty;
    }

    public void setEndCounty(String endCounty) {
        this.endCounty = endCounty;
    }

    public String getGoodsLoad() {
        return goodsLoad;
    }

    public void setGoodsLoad(String goodsLoad) {
        this.goodsLoad = goodsLoad;
    }

    public String getGoodsTypeCode() {
        return goodsTypeCode;
    }

    public void setGoodsTypeCode(String goodsTypeCode) {
        this.goodsTypeCode = goodsTypeCode;
    }

}
